home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / widgets-sgi / Makefile < prev    next >
Encoding:
Makefile  |  1997-02-08  |  899 b   |  60 lines

  1. # Makefile for OpenGL widgets
  2.  
  3. # NOTE: widget code is from SGI.  See any of the .c or .h files for the
  4. # complete copyright.  Mesa's GNU copyright DOES NOT apply to this widget
  5. # code.
  6.  
  7.  
  8. ##### MACROS #####
  9.  
  10. VPATH = RCS
  11.  
  12. INCDIRS = -I../include -I/usr/include/Motif1.2
  13. LIBDIR = ../lib
  14.  
  15. SOURCES = GLwDrawA.c GLwMDrawA.c
  16.  
  17.  
  18. OBJECTS = $(SOURCES:.c=.o)
  19.  
  20.  
  21.  
  22. ##### RULES #####
  23.  
  24. .c.o:
  25.     $(CC) -c $(INCDIRS) $(CFLAGS) $<
  26.  
  27.  
  28.  
  29. ##### TARGETS #####
  30.  
  31. default:
  32.     @echo "Specify a target configuration"
  33.  
  34. clean:
  35.     -rm *.o *~
  36.  
  37. GLW_LIB = libGLw.a
  38.  
  39. targets: $(LIBDIR)/$(GLW_LIB)
  40.  
  41.  
  42. # Make the library
  43. $(LIBDIR)/$(GLW_LIB): $(OBJECTS)
  44.     $(MAKELIB) $(GLW_LIB) $(OBJECTS)
  45.     $(RANLIB) $(GLW_LIB)
  46.     mv $(GLW_LIB)* $(LIBDIR)
  47.  
  48. include ../Make-config
  49.  
  50. include depend
  51.  
  52.  
  53.  
  54. #
  55. # Run 'make depend' to update the dependencies if you change what's included
  56. # by any source file.
  57. dep: $(SOURCES)
  58.     makedepend -fdepend -Y -I../include $(SOURCES)
  59.